import http from "@/api";
import { PORT1 } from "../../config/servicePort";
import qs from "qs";

export const getMenuListApi = (params?: any) => {
	return http.post(PORT1 + "/system/menuManage/query", params, {});
};

export const getMenuTreeApi = () => {
	return http.get(PORT1 + "/system/menuManage/menuTree", {});
};

// 保存菜单
export const saveMenuApi = (params: any) => {
	return http.post(PORT1 + "/system/menuManage/save", params, {});
};

export const deleteMenuApi = (params: any) => {
	return http.post(PORT1 + "/system/menuManage/delete", params, {});
};


// 添加菜单
export const addMenuApi = (params: any) => {
	return http.post(PORT1 + "/system/menu/addMenu", params, {});
};

// 修改菜单
// export const editMenuApi = (params: any) => {
// 	return http.post(PORT1 + "/system/menu/editMenu", params, {});
// };

// export const deleteMenuApi = (params: any) => {
// 	return http.post(PORT1 + "/system/menu/deleteMenu", params, {});
// };
